<?php

namespace app\api\validate;

use think\Validate;

class Staff extends Validate
{
    protected $rule = [
        'boss_id'               => ['require'],
        'name'                  => ['require'],
        'sex'                   => ['require'],
        'id_num'                => ['require'],
        'brith_time'            => ['require'],
        'age'                   => ['require'],
        'phone'                 => ['require'],
        'census_address'        => ['require'],
        'dwell_address'         => ['require'],
        'dwell_address_details' => ['require'],
        'before_work'           => ['require'],
        'compensation'          => ['require'],
        'expect_work'           => ['require'],
    ];

    protected $message  =   [
        'boss_id.require'               => '上级id不能位空',
        'name.require'                  => '人才姓名不能位空',
        'sex.require'                   => '性别不能位空',
        'id_num.require'                => '身份证号不能位空',
        'brith_time.require'            => '出生年月不能为空',
        'age.require'                   => '年龄不能位空',
        'phone.require'                 => '联系电话不能为空',
        'census_address.require'        => '户籍所在地不能位空',
        'dwell_address.require'         => '居住地址不能为空',
        'dwell_address_details.require' => '详细居住地址不能为空',
        'before_work.require'           => '曾经工作的岗位不能为空',
        'compensation.require'          => '期望薪资不能为空',
        'expect_work.require'           => '期望岗位不能为空',
    ];
}
